package com.commerce.pojo.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("evaluater")
public class Evaluater {
    /**
     * 评价关系id
     */
    @TableId(value = "id", type = IdType.AUTO) //指定id类型为自增长
    private long id;
    /**
     * 买家id
     */
    private long buyerId;
    /**
     * 商品id
     */
    private long commodityId;
    /**
     * 评价
     */
    private long evaluate;

    public Evaluater() {
    }

    public Evaluater(long buyerId, long commodityId, long evaluate) {
        this.buyerId = buyerId;
        this.commodityId = commodityId;
        this.evaluate = evaluate;
    }

    public Evaluater(long id, long buyerId, long commodityId, long evaluate) {
        this.id = id;
        this.buyerId = buyerId;
        this.commodityId = commodityId;
        this.evaluate = evaluate;
    }
}
